<template>
  <div class="char-title">
    <div class="left">{{ props.title }}</div>
    <div class="right"> </div>
  </div>
</template>

<script setup>

const props = defineProps({
  title: {
    type: String,
    default: '决策分析'
  }
})
</script>

<style scoped lang="scss">
.char-title {
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  // margin-bottom: 10px;
  position: relative;

  .left {
    width: 260px;
    height: 40px;
    background-color: #3f95d2;
    color: #fff;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    text-align: right;
    font-size: 22px;
    line-height: 40px;
    padding-right: 5px;
    font-weight: 700;
    overflow: hidden;
    animation: 1s widthChange;
  }

  .right {
    width: 300px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    .logo {
      height: 60px;
    }
  }

  &::after {
    content: '';
    display: block;
    position: absolute;
    width: 86%;
    height: 3px;
    // background-color: #cecece;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
  }
}

@keyframes widthChange {
  0% {
    width: 0px;
  }

  100% {
    width: 260px;
  }
}
</style>
